<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Option extends Model
{
	use HasDateTimeFormatter;
    public $timestamps = false;


    public static function get_pets_config(){
        $option_value=Option::query()->where('option_name','=','pets_config')->value('option_value');
        $option_value=json_decode($option_value,true);
        return  empty($option_value)?[]:$option_value;
    }
}
